<%--
  Created by IntelliJ IDEA.
  User: feng
  Date: 2016/3/24
  Time: 14:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="commons/taglib-header.jsp" %>
<html>
<head>
    <title>用户</title>
</head>
<body>

<div class="row">
    <div class="col-lg-2 col-sm-3 sidebar column">
        <ul id="navleft" class="nav nav-pills nav-stacked">
        </ul>
    </div>

    <div class="col-lg-10 col-sm-9 main column">

        <h2 class="page-header">编辑</h2>

        <form:form modelAttribute="userEditTableDto" cssClass="form-horizontal" action="${contextPath}/user/eidt">

            <div class="form-group">
                <label class="col-sm-2 control-label">唯一标识<em class="text-danger">*</em></label>
                <div class="col-sm-10">
                    <form:input path="uuid" cssClass="form-control" value="${userEditTableDto.uuid}"
                                required="required" maxlength="255" readonly="true"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">用户名<em class="text-danger">*</em></label>
                <div class="col-sm-10">
                    <form:input path="username" cssClass="form-control" placeholder="长度大于6位"
                                required="required" maxlength="255" />
                    <form:errors path="username" cssClass="label label-warning"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">权限<em class="text-danger">*</em></label>

                <div class="col-sm-10">
                    <form:checkboxes path="privileges" items="${userEditTableDto.allPrivileges}" itemValue="value"
                                     itemLabel="label" delimiter="<br/>"/>
                    <form:errors path="privileges" cssClass="label label-warning"/>
                    <p class="help-block">至少勾选一个</p>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2"></div>
                <div class="col-sm-10">
                    <button type="submit" class="btn btn-primary"><em class="glyphicon glyphicon-ok-sign"></em>保存
                    </button>
                    <a href="list">返回</a>
                </div>
            </div>
        </form:form>
    </div>
</div>

</body>
</html>
